/******************************************************************************/
/*                                                                            */
/*  Copyright (c) 2009: ngi-central.org                                       */
/*  All rights reserved.                                                      */
/*                                                                            */
/******************************************************************************/


#include <boost/test/unit_test.hpp>

#include "..\..\include\sgl\squared_length.h"
#include "..\..\include\sgl\vector.h"
#include "..\..\include\sgl\point.h"

BOOST_AUTO_TEST_SUITE( squared_length3d )


BOOST_AUTO_TEST_CASE( squared_length__vector3d )
{
	sgl::vector<3> a;

	BOOST_CHECK( squared_length(a) == 0 );

	sgl::vector<3> b(1, 2, 3);

	BOOST_CHECK( squared_length(b) == 14 );
}

BOOST_AUTO_TEST_CASE( squared_length__point3d )
{
	sgl::point<3> a;

	BOOST_CHECK( squared_length(a) == 0 );

	sgl::point<3> b(1, 2, 3);

	BOOST_CHECK( squared_length(b) == 14 );
}


BOOST_AUTO_TEST_SUITE_END()

